<template>
    <div class="foot-container">
        <h3>当前你登录的用户是：{{ currentUserInfo }}</h3>
    </div>
</template>

<script>
// 引入 store
import { mapState } from 'vuex'
export default {
    name: 'TheFoot',
    computed: {
        // 映射 store 中的 currentUserInfo
        ...mapState(['currentUserInfo'])
    }
}
</script>